﻿#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 6031)
#include "sl.h"

int main()
{
	sl s;
	initsl(&s);

	pushback(&s, 1);
	pushback(&s, 2);
	pushback(&s, 3);
	pushback(&s, 4);
	pushfront(&s, 0);
	popback(&s);
	popfront(&s);
	pushmid(&s, 3, 2);
	pushmid(&s, 1, 1);
	erasemid(&s, 1);
	erasemid(&s, 1);
	erasemid(&s, 1);



	print(&s);
	freesl(&s);
	return 0;
}